<template>
    <view class="goodmoudels">
        <view class='modelitem'>
            <view class="item_header">
            <view class="title">换出商品</view>
            <view class="title">继续+</view>
            </view>
            <view class="item_goods_list">
                <view class="item_goods_list_header">
                    <view class="item_goods_list_header_sort"> 01 </view>
                    <view class="item_goods_list_header_name"> 合力CBD15J-LI-S 1150*685mm全电液压搬运车1.5吨托盘车 </view>
                </view>
                <view class="item_goods_list_contant">
                    <view class="item_goods_list_contant_header">供货商：11101 太原优鲜多歌供应商</view>
                    <view class="table">
                        <view class="table_item">货号：893480</view>
                        <view class="table_item">货号：893480</view>
                        <view class="table_item">货号：893480</view>
                        <view class="table_item">货号：893480</view>
                        <view class="table_item">货号：893480</view>
                    </view>
                    <view class="table_from">
                        <view class="table_from_th">
                            <view>批次编号</view>
                            <view>生产日期</view>
                            <view>过期日期</view>
                        </view>
                        <view class='table_from_contant'>
                            <view class="table_from_contant_item">[过期]41505019</view>
                            <view class="table_from_contant_item">2023.12.01</view>
                            <view class="table_from_contant_item">2023.12.01</view>
                        </view>
                    </view>
                    <view class="table_time">
                        <view class="title">商品有效期（填写一项即可）</view>
                        <view class="time">
                            <view class="time_input">
                                <eui-datetimepicker
                                    type="date"
                                    textAlignType="left"
                                    returnType="YYYY-MM-DD"
                                    placeholder='开始日期'
                                    v-model="time"
                                    @change="changeLog"
                                />
                            </view>
                            <view>至</view>
                            <view class="time_input">
                                <eui-datetimepicker
                                    type="date"
                                    textAlignType="left"
                                    returnType="YYYY-MM-DD"
                                    placeholder='结束日期'
                                    v-model="time"
                                    @change="changeLog"
                                />
                            </view>
                        </view>
                    </view>
                    <view class="numberflex">
                        <view class="label">换出数量</view>
                        <view>
                            <eui-inputnumber
                                v-model="value"
                                :styletype="false"
                                :value="value"
                                jldw=""
                                @input="value = $event.target.value"
                            />                
                        </view>
                    </view>
                    <view class="summarize">
                        <view>成本金额（含税）</view>
                        <view>¥5,889.76 </view>
                    </view>
                </view>
            </view>
            <view class="modelitem_summarize">
                <view>成本金额（含税）</view>
                <view>¥5,889.76 </view>
            </view>
            <view class="modelitem_summarize_prompt">           
                再新增，可满换出商品金额数
            </view>
            <view class="modelitem_summarize_prompt success">
                已满足，换入商品大于等于换出商品金额数
            </view>
        </view>
    </view>
</template>
  
  <script>
  export default {
    props: {

    },
    data(){
        return {
            value:5,
            time:''
        }
    },
    methods: {
        uploadgoodcar(){},
        changeLog(){
            console.log(this.time)
        }
    },
  };
  </script>
  
  <style scoped lang="scss">    
  .goodmoudels{
  width: 670rpx;
  margin: auto;
  margin-top: 30rpx;
  .modelitem{
    width: calc(100% - 40rpx);
    background: #f2f3f5;
    border-radius: 20rpx;
    padding: 20rpx;
    .modelitem_summarize{
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 30rpx;
        font-family: PingFang SC, PingFang SC-Medium;
        font-weight: Medium;
        text-align: left;
        color: #222222;
        margin-top: 30rpx;
        view{
            &:nth-child(2){
                color: #F56C6C;
            }
        }
    }
    .modelitem_summarize_prompt{
        background: #f56c6c;
        border-radius: 12rpx;
        font-size: 26rpx;
        font-family: PingFang SC, PingFang SC-Regular;
        font-weight: Regular;
        text-align: center;
        color: #ffffff;
        line-height: 68rpx;
        margin-top: 20rpx;
    }
    .success{
        background: #17C1A6 !important;
    }
    .item_header{
      display: flex;
      justify-content: space-between;
      align-items: center;
      .title{
        font-size: 28rpx;
        font-family: PingFang SC, PingFang SC-Medium;
        font-weight: Medium;
        text-align: left;
        color: #222222;
        line-height: 40rpx;
      }
    }
    .item_goods_list{
      background: #ffffff;
      border-radius: 16rpx; 
      padding: 30rpx 20rpx;
      margin-top: 20rpx;
      .item_goods_list_header{
        display: flex;
        justify-content: space-between;
     
        .item_goods_list_header_sort{
          width: 60rpx;
          height: 60rpx;
          background: #f4f9ff;
          border-radius: 10rpx;
          font-size: 28rpx;
          font-family: Bebas, Bebas-Regular;
          font-weight: Regular;
          text-align: center;
          color: #1580f1;
          line-height: 60rpx;
          margin-right: 20rpx;
        }
        .item_goods_list_header_name{
          font-size: 28rpx;
          font-family: PingFang SC, PingFang SC-Medium;
          font-weight: Medium;
          text-align: left;
          color: #222222;
          line-height: 40rpx;
          max-width: 510rpx;
        }
      }
      .item_goods_list_contant {
        .item_goods_list_contant_header{
            font-size: 24rpx;
            font-family: PingFang SC, PingFang SC-Regular;
            font-weight: Regular;
            text-align: left;
            color: #666666;
            margin-top: 10rpx;
        }
        .table{ 
            display: flex;
            align-items: center;
            flex-flow: wrap;
            .table_item{
                width: 50%;
                font-size: 24rpx;
                font-family: PingFang SC, PingFang SC-Regular;
                font-weight: Regular;
                text-align: left;
                color: #666666;
                margin-top: 10rpx;
            }
        }
        .table_from{
            background: #f2f3f5;
            border-radius: 16rpx;
            margin-top: 20rpx;
            padding: 20rpx;
            .table_from_th{
                display: flex;
                justify-content: space-between;
                view{
                    width: 33%;
                    font-size: 26rpx;
                    font-family: PingFang SC, PingFang SC-Medium;
                    font-weight: Medium;
                    text-align: center;
                    color: #666666;
                }
            }
            .table_from_contant{
                display: flex;
                justify-content: space-between;
                background: #ffffff;
                padding: 14rpx 0rpx;
                border-radius: 12rpx;
                margin-top: 20rpx;
                view{
                    width: 33%;
                    font-size: 22rpx;
                    font-family: PingFang SC, PingFang SC-Medium;
                    font-weight: Medium;
                    text-align: center;
                    color: #666666;
                }
            }
        }
        .table_time{
            background: #f2f3f5;
            border-radius: 16rpx;
            margin-top: 20rpx;
            padding: 20rpx;
            .title{
                font-size: 26rpx;
                font-family: PingFang SC, PingFang SC-Medium;
                font-weight: Medium;
                text-align: left;
                color: #666666;
            }
            .time{
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-top: 20rpx;  
                view{
                    font-size: 26rpx;
                    font-family: PingFang SC, PingFang SC-Medium;
                    font-weight: Medium;
                    text-align: left;
                    color: #666666;
                }
                .time_input{
                    width: 238rpx;
                    height: 56rpx;
                    background: #ffffff;
                    border-radius: 12rpx;
                    line-height: 56rpx;
                    text-align: center;
                    font-size: 26rpx;
                    font-family: PingFang SC, PingFang SC-Regular;
                    font-weight: Regular;
                    text-align: center;
                    color: #999999;
                }
            }
        }
        .numberflex{
          display: flex;
          justify-content: space-between;
          align-items: center;
          padding: 10rpx;
          background: #f2f3f5;
          border-radius: 16rpx;
          margin-top: 20rpx;
          .label{
              font-size: 26rpx;
              font-family: PingFang SC, PingFang SC-Medium;
              font-weight: Medium;
              text-align: left;
              color: #666666;
          }
        }
        .summarize{
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 28rpx;
            font-family: PingFang SC, PingFang SC-Medium;
            font-weight: Medium;
            text-align: left;
            color: #222222;
            margin-top: 30rpx;
        }
      }

    }
  }
}
::v-deep .uni-date__x-input{
    width: 238rpx;
    line-height: 56rpx;
    text-align: center;
    font-size: 26rpx;
    font-family: PingFang SC, PingFang SC-Regular;
    font-weight: Regular;
    text-align: center;
    color: #999999;
}
  </style>
  